(function() {
	var ics = Iefgames_CS;
	if ($defined(ics.Login)) {
		return ;
	}
	
	ics.Login = function() {
		var submit = function() {
			var loginFormId = 'loginForm';
			if (!($('username').value.trim()) || !($('password').value).trim()) {
				alert('type username or password, please!');
				return ;
			}
	
			var form = $(loginFormId);
			form.setAttribute('method', 'Post');
			form.setAttribute('action', 'http://server.cs.iefgames.com:8080/login');
			
			form.submit();
		}
		
		ics._$('loginSubmit', submit);
		return {}
	}();
})();